package com.kmust.dream.wanderingdream.shoppingcart.feign;

import com.kmust.dream.wanderingdream.comm.pojo.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("wanderingdream-product")
public interface ProductSkuFeign {

    @GetMapping("productSku/getSkuById/{skuId}")
    ResultBean getSkuById(@PathVariable Integer skuId);

    @GetMapping("productSku/getSkuStock/{skuId}")
    ResultBean getSkuStock(@PathVariable Integer skuId);

    @GetMapping("/getSkuVersion/{skuId}")
    ResultBean getSkuVersion(@PathVariable Integer skuId);
}
